package com.mac.demo.entity;

import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;


/**
 * @Created：2020-06-28
 * @Author zhangshoucang
 * @Version:1.0
 * @Description:AppUser
 * @Email:303417292@qq.com
*/
@TableName("app_user")
public class AppUser implements Serializable
{
	private static final long serialVersionUID = 1L;


	/**
	 * 指定自增策略,  设置后，insert方法后，返回id
	 */
	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;

	/**
	 * 用户名
	 */
	private String username;

	/**
	 * 密码
	 */
	private String password;

	/**
	 * 年龄
	 */
	private Integer age;

	/**
	 * token
	 */
	private String token;

	public Integer getId()
	{
		return id;
	}
	public void setId(Integer id)
	{
		this.id = id;
	}
	public String getUsername()
	{
		return username;
	}
	public void setUsername(String username)
	{
		this.username = username;
	}
	public String getPassword()
	{
		return password;
	}
	public void setPassword(String password)
	{
		this.password = password;
	}
	public Integer getAge()
	{
		return age;
	}
	public void setAge(Integer age)
	{
		this.age = age;
	}
	public String getToken()
	{
		return token;
	}
	public void setToken(String token)
	{
		this.token = token;
	}
	public String toString()
	{
		return "id:" + id+"	"+"username:" + username+"	"+"password:" + password+"	"+"age:" + age+"	"+"token:" + token+"	"+"";
	}
}
